﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DepartmentList.aspx.cs" Inherits="admin_user_DepartmentList" %>

      
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>后台管理</title>
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body >
    <form id="form1" runat="server">
    <div>
 <table width="99%" border="0" cellpadding="0" cellspacing="0">
<tr> 
<td width="2%"><img src="../images/module.gif" width="20" height="22" alt=""/></td>
<td ><asp:Label ID="lblwz" runat="server"></asp:Label></td>
<td  align="right" width="10%"></td>
</tr>
</table>
<table width="99%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#3CB6E5" height="5px"></td>
  </tr>
</table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
      <td width="4%"><img height="22" alt="SEARCH" src="../images/icon_search.gif" width="26" border="0" /></td>

      <td width="8%">关键字：</td>
      <td width="50%">
          <asp:TextBox ID="txtDepKeys" runat="server" Width="300px"></asp:TextBox>
      
      </td>
      <td width="20%"></td>
        
      <td width="10%" align="left">
       <asp:ImageButton ID="ibtnSearch" ImageUrl="../images/button04.gif" runat="server" OnClick="ibtnSearch_Click" />
      </td>
      </tr>
        </table>
        <table width="99%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td bgcolor="#3CB6E5" height="2px"></td>
            </tr>
        </table>  
<asp:GridView ID="GridView1" runat="server" CssClass="tabGg" Width="99%" CellPadding="4" 
        ForeColor="#333333" DataKeyNames="Id" AutoGenerateColumns="False" 
        AllowPaging="True" pagesize="100" BorderStyle="Solid" BorderWidth="1px" 
      ShowFooter="false" EmptyDataText="没有数据记录！！" AllowSorting="True" 
       onrowdatabound="GridView1_RowDataBound"  >
        <Columns>
               <asp:BoundField DataField="DepCode" HeaderText="编号">  </asp:BoundField>  
               <asp:BoundField DataField="DepName" HeaderText="部门名称"  >  
                <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>  
                <asp:BoundField DataField="DepTel" HeaderText="部门电话">  </asp:BoundField>  
                <asp:BoundField DataField="DepManager" HeaderText="部门负责人">  </asp:BoundField> 
                <asp:BoundField DataField="ManagerMobile" HeaderText="负责人手机号">  </asp:BoundField>  
            <asp:TemplateField ShowHeader="False" ItemStyle-Width="100" HeaderText="操作">
             <ItemTemplate>

               <a href="AddDepartment.aspx?id=<%# Eval("Id") %>" title="编辑"><img height="16" src="../images/icon_edit.gif" width="16" border="0" /></a>
           <a title="移除" href="DepartmentList.aspx?uid=<%# Eval("Id") %>&action=del" onclick="javascript:return confirm('你确定要删除这个部门吗?');"><img height="16" src="../images/icon_drop.gif" width="16" border="0" /></a>
            </ItemTemplate>
        </asp:TemplateField>
        </Columns>
             <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />             
             <PagerStyle BackColor="White" ForeColor="#333333" HorizontalAlign="Center" Font-Bold="True" Font-Size=30px />
             <HeaderStyle BackColor="#E2E7EB" Font-Bold="True" ForeColor="Black" HorizontalAlign="Left" />
             <AlternatingRowStyle BackColor="White" />
             <PagerSettings Visible="False" />
        </asp:GridView>
     <table width="98%" border="0" cellspacing="0" cellpadding="0">
       <tr>
         <td>&nbsp;</td>
         <td height="25" align="right" bgcolor="#E9ECEF"><asp:Label ID="LblRecordCount" runat="server"></asp:Label>
            <asp:Label ID="LblCurrentIndex" runat="server"></asp:Label>
            <asp:Label ID="LblPageCount" runat="server"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <asp:LinkButton ID="btnFirst" CommandArgument="first" OnClick="PagerButtonClick" runat="server">首 页</asp:LinkButton> 
            <asp:LinkButton ID="btnPrev" CommandArgument="prev" OnClick="PagerButtonClick" runat="server">上一页</asp:LinkButton> 
            <asp:LinkButton ID="btnNext" CommandArgument="next" OnClick="PagerButtonClick" runat="server">下一页</asp:LinkButton> 
            <asp:LinkButton ID="btnLast" CommandArgument="last" OnClick="PagerButtonClick" runat="server">尾 页</asp:LinkButton> 
             跳转到第<asp:DropDownList ID="ddlCurrentPage" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"> </asp:DropDownList>页&nbsp;
         </td>
       </tr>
    </table>

        </div>
    </form>
</body>
</html>
